home *** CD-ROM | disk | FTP | other *** search
- Path: fas-news.harvard.edu!scws40!ccshan
- From: ccshan@scws40.harvard.edu (Chung-chieh Shan)
- Newsgroups: comp.lang.c++
- Subject: Re: SGI's C++ compiler and the boolean type
- Date: 11 Apr 1996 16:03:08 GMT
- Organization: Harvard University
- Message-ID: <4kjafs$h4b@decaxp.HARVARD.EDU>
- References: <4kefm7$oao@ncar.ucar.edu> <4kg6fv$h7k@nic.ftns.no> <WALD.96Apr11105913@woodpecker.lcs.mit.edu>
- NNTP-Posting-Host: scws40.harvard.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- > No user-level definition of bool will make distinguish() return 0, as
- > it must in the draft standard.
-
- Hmm, why can't I just define bool as a class? I realize there are
- problems with some library routines (for example making isalpha(char)
- return bool rather than int -- overloading can't be used here), but
- distinguishing between a bool class and an int type (which can be
- implicitly casted to each other) is certainly possible.
-
- --
- blue | Chung-chieh Shan (Ken) | Life is a sexually transmitted
- () | ccshan@fas.harvard.edu | math too is a terminal representation
- /\ | Finger for PGP key | game. disease. of Quality.
-